﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ManejoCircuito.aspx.cs" Inherits="TCU.ManejoCircuito" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h1>Manejo de Circuitos</h1>
        <br />
        <asp:Label ID="CircuitoNotification" runat="server" Text="" ForeColor='red'></asp:Label>
        <br />
        <p>Este es el formulario de manejo de Circuitos.</p>
        <center>
        <asp:GridView ID="gvCircuitos" runat="server" AutoGenerateColumns="False" 
            AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" 
            onrowcommand="gvCircuitos_RowCommand" ShowFooter="True" 
            onrowcancelingedit="gvCircuitos_RowCancelingEdit" 
            onrowdeleting="gvCircuitos_RowDeleting" onrowediting="gvCircuitos_RowEditing" 
            onrowupdating="gvCircuitos_RowUpdating" CssClass="table table-striped" 
                GridLines="None">
            <Columns>
                <asp:TemplateField HeaderText="ID" SortExpression="ID">
                    <EditItemTemplate>
                        <asp:Label ID="lblEditID" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nombre Circuito" 
                    SortExpression=" NombreCircuito">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditNombre" runat="server" 
                            Text='<%# Bind("NombreCircuito") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="addNombreCircuito" runat="server" MaxLength="50"></asp:TextBox>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("NombreCircuito") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Codigo Circuito" 
                    SortExpression="Codigo Circuito">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtEditCodigo" runat="server" 
                            Text='<%# Bind("[Codigo Circuito]") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="addCodigoCircuito" runat="server" MaxLength="10"></asp:TextBox>
                        &nbsp;
                        <asp:LinkButton ID="lnkAdd" runat="server" CommandName="Agregar" CssClass="btn btn-primary">Agregar</asp:LinkButton>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("[Codigo Circuito]") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </center>

</asp:Content>
